home *** CD-ROM | disk | FTP | other *** search
/ The Guided Tour of Multimedia (Second Edition) / The Guided Tour of Multimedia (Second Edition).iso / trials / qtw111 / inc / qtw.h < prev    next >
C/C++ Source or Header  |  1993-03-12  |  22KB  |  504 lines

  1.  
  2.  
  3. // ---------------------------------------------------------------------
  4. //
  5. // QTW.H - QuickTime for Windows C and C++ Bindings
  6. //
  7. //         Version 1.0
  8. //
  9. //         (c) 1988-1992 Apple Computer, Inc. All Rights Reserved.
  10. //
  11. // ---------------------------------------------------------------------
  12.  
  13.  
  14. // Prevent multiple inclusion
  15. // --------------------------
  16. #ifndef __QTW_H__
  17. #define __QTW_H__
  18.  
  19.  
  20. // Movie Controller MCDoAction action constants
  21. // --------------------------------------------
  22. typedef enum
  23.   {mcActionIdle                   =  1, // No Param
  24.    mcActionDraw                   =  2, // No Param
  25.    mcActionActivate               =  3, // No param
  26.    mcActionDeactivate             =  4, // No param
  27.    mcActionKey                    =  6, // Param is pointer to MSG
  28.    mcActionPlay                   =  8, // Param is LFIXED play rate
  29.    mcActionGoToTime               = 12, // Param is pointer to TimeRecord
  30.    mcActionSetVolume              = 14, // Param is SFIXED volume
  31.    mcActionGetVolume              = 15, // Param is pointer to SFIXED volume
  32.    mcActionStep                   = 18, // Param is LONG number of steps
  33.    mcActionSetLooping             = 21, // Param is a BOOL
  34.    mcActionGetLooping             = 22, // Param is pointer to a BOOL
  35.    mcActionSetLoopIsPalindrome    = 23, // Param is BOOL
  36.    mcActionGetLoopIsPalindrome    = 24, // Param is pointer to a BOOL
  37.    mcActionSetGrowBoxBounds       = 25, // Param is pointer to a Rect
  38.    mcActionControllerSizeChanged  = 26, // No param
  39.    mcActionSetSelectionBegin      = 29, // Param is pointer to TimeRecord
  40.    mcActionSetSelectionDuration   = 30, // Param is pointer to TimeRecord
  41.    mcActionSetKeysEnabled         = 32, // Param is BOOL
  42.    mcActionGetKeysEnabled         = 33, // Param is pointer to BOOL
  43.    mcActionSetPlaySelection       = 34, // Param is BOOL
  44.    mcActionGetPlaySelection       = 35, // Param is pointer to BOOL
  45.    mcActionSetUseBadge            = 36, // Param is BOOL
  46.    mcActionGetUseBadge            = 37, // Param is pointer to BOOL
  47.    mcActionSetFlags               = 38, // Param is LONG flags
  48.    mcActionGetFlags               = 39, // Param is pointer to LONG flags
  49.    mcActionSetPlayEveryFrame      = 40, // Param is BOOL
  50.    mcActionGetPlayEveryFrame      = 41, // Param is pointer to BOOL
  51.    mcActionGetPlayRate            = 42, // Param is pointer to LFIXED
  52.    mcActionBadgeClick             = 44  // No param
  53.   } mcActionType;
  54.  
  55.  
  56. // Movie Controller MCDoAction, action McActionSetFlags parameter, movie
  57. // controller structure parameter, lfActionFlags
  58. // ---------------------------------------------------------------------
  59. typedef enum
  60.   {mcFlagSuppressStepButtons      = 1<<1,
  61.    mcFlagSuppressSpeakerButton    = 1<<2,
  62.    mcFlagsUseWindowPalette        = 1<<3
  63.   } mcActionFlags;
  64.  
  65.  
  66. // Toolbox function NewMovieController and Movie Controller function
  67. // MCPositionController parameter controllerCreationFlags values,
  68. // movie controller structure parameter, lfControllerStateFlags
  69. // -----------------------------------------------------------------
  70. typedef enum
  71.   {mcTopLeftMovie                 = 1<<0,
  72.    mcScaleMovieToFit              = 1<<1,
  73.    mcWithBadge                    = 1<<2,
  74.    mcNotVisible                   = 1<<3
  75.   } mcControllerStateFlags;
  76.  
  77.  
  78. // Movie Controller function MCGetControllerInfo parameter mcInfoFlags
  79. // parameter, movie controller structure parameter, lfControllerInfoFlags
  80. // ----------------------------------------------------------------------
  81. typedef enum
  82.   {mcInfoHasSound                 = 1<<5,
  83.    mcInfoIsPlaying                = 1<<6,
  84.    mcInfoIsLooping                = 1<<7,
  85.    mcInfoIsInPalindrome           = 1<<8
  86.   } mcControllerInfoFlags;
  87.  
  88.  
  89. // NewMovieFromFile flags
  90. // ----------------------
  91. typedef enum
  92.   {newMovieActive                 = 1<<0,
  93.    newMovieDontResolveDataRefs    = 1<<1,
  94.    newMovieDontAskUnresolvedDataRefs = 1<<2,
  95.    newMovieDontAutoAlternates     = 1<<3
  96.   } newMovieFlags;
  97.  
  98.  
  99. // Flags for SetMoviePlayHints
  100. // ---------------------------
  101. typedef enum
  102.   {hintsScrubMode                 = 1<<1,
  103.    hintsInterpolateSound          = 1<<7
  104.   } moviePlayHints;
  105.  
  106.  
  107. // Manifest constants for ostypes as flags for Component Manager calls
  108. // -------------------------------------------------------------------
  109. #define kAnyComponentType           0
  110. #define kAnyComponentSubType        0
  111. #define kAnyComponentManufacturer   0
  112. #define kAnyComponentFlagsMask      0
  113.  
  114.  
  115. // SetDefaultComponent Flags
  116. // -------------------------
  117. typedef enum
  118.   {defaultComponentIdentical        = 0,
  119.    defaultComponentAnyFlags         = 1,
  120.    defaultComponentAnyManufacturer  = 2,
  121.    defaultComponentAnySubType       = 4
  122.   } defaultComponentFlags;
  123.  
  124.  
  125. // RegisterComponent Flags
  126. // -----------------------
  127. typedef enum
  128.   {registerComponentGlobal          = 1,
  129.    registerComponentNoDuplicates    = 2,
  130.    registerComponentAfterExisting   = 4
  131.   } registerComponentFlags;
  132.  
  133.  
  134. // Error codes
  135. // -------------
  136. enum
  137.   {
  138.    paramErr                       = -50,
  139.    couldNotResolveDataRef         = -2000,
  140.    badImageDescription            = -2001,
  141.    badPublicMovieAtom             = -2002,
  142.    cantFindHandler                = -2003,
  143.    cantOpenHandler                = -2004,
  144.    badComponentType               = -2005,
  145.    noMediaHandler                 = -2006,
  146.    noDataHandler                  = -2007,
  147.    invalidMedia                   = -2008,
  148.    invalidTrack                   = -2009,
  149.    invalidMovie                   = -2010,
  150.    invalidSampleTable             = -2011,
  151.    invalidDataRef                 = -2012,
  152.    invalidHandler                 = -2013,
  153.    invalidDuration                = -2014,
  154.    invalidTime                    = -2015,
  155.    cantPutPublicMovieAtom         = -2016,
  156.    badEditList                    = -2017,
  157.    mediaTypesDontMatch            = -2018,
  158.    progressProcAborted            = -2019,
  159.    movieToolboxUninitialized      = -2020,
  160.    wffileNotFound                 = -2021,
  161.    cantCreateSingleForkFile       = -2022,
  162.    invalidEditState               = -2023,
  163.    nonMatchingEditState           = -2024,
  164.    staleEditState                 = -2025,
  165.    userDataItemNotFound           = -2026,
  166.    maxSizeToGrowTooSmall          = -2027,
  167.    badTrackIndex                  = -2028,
  168.    trackIDNotFound                = -2029,
  169.    trackNotInMovie                = -2030,
  170.    timeNotInTrack                 = -2031,
  171.    timeNotInMedia                 = -2032,
  172.    badEditIndex                   = -2033,
  173.    internalQuickTimeError         = -2034,
  174.    cantEnableTrack                = -2035,
  175.    invalidRect                    = -2036,
  176.    invalidSampleNum               = -2037,
  177.    invalidChunkNum                = -2038,
  178.    invalidSampleDescIndex         = -2039,
  179.    invalidChunkCache              = -2040,
  180.    invalidSampleDescription       = -2041,
  181.    dataNotOpenForRead             = -2042,
  182.    dataNotOpenForWrite            = -2043,
  183.    dataAlreadyOpenForWrite        = -2044,
  184.    dataAlreadyClosed              = -2045,
  185.    endOfDataReached               = -2046,
  186.    dataNoDataRef                  = -2047,
  187.    noMovieInDataFork              = -2048,
  188.    invalidDataRefContainer        = -2049,
  189.    badDataRefIndex                = -2050,
  190.    noDefaultDataRef               = -2051,
  191.    couldNotUseAnExistingSample    = -2052,
  192.    featureUnsupported             = -2053,
  193.    noVideoTrackInMovie            = -2054,
  194.    noSoundTrackInMovie            = -2055,
  195.    soundSupportNotAvailable       = -2056,
  196.    maxControllersExceeded         = -2057,
  197.    unableToCreateMCWindow         = -2058,
  198.    insufficientMemory             = -2059,
  199.    invalidUserDataHandle          = -2060,
  200.    noPictureInFile                = -2061,
  201.    invalidPictureFileHandle       = -2062,
  202.    invalidPictureHandle           = -2063,
  203.    badDisplayContext              = -2064,
  204.    invalidComponentID             = -3000,
  205.    validInstancesExist            = -3001,
  206.    componentNotCaptured           = -3002,
  207.    componentDontRegister          = -3003,
  208.    noErr                          = 0,
  209.    mcOK                           = 0,
  210.    mcEventNotHandled              = 0,
  211.    mcEventHandled                 = 1,
  212.    codecConditionErr              = -8972,
  213.    controllerBoundsNotExact       = -9996,
  214.    editingNotAllowed              = -9995
  215.   };
  216.  
  217.  
  218. // QTInitialize error codes
  219. // ------------------------
  220. enum
  221.   {QTI_OK                         = 0,
  222.    QTI_FAIL_NOEXIST               = 1,
  223.    QTI_FAIL_CORRUPTDLL            = 2,
  224.    QTI_FAIL_286                   = 3,
  225.    QTI_FAIL_WIN30                 = 4
  226.   };
  227.  
  228.  
  229. // Component Manager error codes
  230. // -----------------------------
  231. #define badComponentInstance    0x80008001
  232. #define badComponentSelector    0x80008002
  233.  
  234.  
  235. // Special MCI Interface
  236. // ---------------------
  237. #define MCI_QTW_PLAY_WINDOW     0x01000000L
  238. #define MCI_QTW_PLAY_FULLSCREEN 0x02000000L
  239. #define MCI_QTW_SET_USE_MC      0x00100000L
  240. #define MCI_QTW_SET_PAL_ASSERT  0x00200000L
  241. #define MCI_QTW_SET_GROWBOX     0x00400000L
  242.  
  243.  
  244. // Declared handles
  245. // ----------------
  246. DECLARE_HANDLE(UserData);              // Hungarian: ud
  247. DECLARE_HANDLE(PicHandle);             // Hungarian: ph
  248. DECLARE_HANDLE(DIBHandle);             // Hungarian: dh
  249. DECLARE_HANDLE(PicFile);               // Hungarian: pic
  250. DECLARE_HANDLE(MovieFile);             // Hungarian: mov
  251.  
  252.  
  253. // Typedef's
  254. // ---------
  255. typedef LONG ComponentResult;          // Hungarian: cr
  256. typedef LONG OSErr;                    // Hungarian: oserr
  257. typedef LONG OSType;                   // Hungarian: ostype
  258. typedef VOID FAR *ProgressProcRecordPtr; // Hungarian: pprp
  259. typedef LONG TimeScale;                // Hungarian: ts
  260. typedef DWORD TimeValue;               // Hungarian: tv
  261. typedef LONG LFIXED;                   // Hungarian: lfx
  262. typedef short SFIXED;                  // Hungarian: sfx
  263.  
  264. typedef struct _tagInt64               // Hungarian: qw (quad word)
  265.   {DWORD dwLo;
  266.    LONG  dwHi;
  267.   } Int64;
  268.  
  269. typedef struct _tagOpenCPicParms       // Hungarian: ocp
  270.   {RECT   rect;
  271.    LFIXED hRes;
  272.    LFIXED vRes;
  273.    WORD   wVersion;
  274.    WORD   wReserved1;
  275.    DWORD  dwReserved2;
  276.   } OpenCPicParams;
  277.  
  278. typedef struct _tagTimeBaseRecord      // Hungarian: tbr
  279.   {DWORD FAR *p;
  280.   } TimeBaseRecord;
  281.  
  282. typedef TimeBaseRecord FAR *TimeBase;  // Hungarian: tb
  283.  
  284. #define TIMEBASE_DEFAULT ((TimeBase) -1L)
  285.  
  286. typedef struct _tagTimeRecord          // Hungarian: tr
  287.   {Int64     value;
  288.    TimeScale scale;
  289.    TimeBase  base;
  290.   } TimeRecord;
  291.  
  292. typedef struct _tagSoundDescription    // Hungarian: sd (SoundDescription)
  293.   {LONG  descSize;                     // structure size
  294.    DWORD dataFormat;                   // always 'raw '
  295.    DWORD resvd1;                       // always 0
  296.    WORD  resvd2;                       // always 0
  297.    WORD  dataRefIndex;                 // always 1
  298.    WORD  version;                      // always 0
  299.    WORD  revLevel;                     // always 0
  300.    DWORD vendor;                       // always 0
  301.    WORD  numChannels;                  // 1=mono; 2=stereo
  302.    WORD  sampleSize;                   // 8=8bit sound; 16=16bit sound
  303.    WORD  compressionID;                // always 0
  304.    WORD  packetSize;                   // always 0
  305.    LFIXED sampleRate;                  // eg: 44100.0000 per second
  306.   } SoundDescription;
  307.  
  308. typedef struct _tagImageDescription    // Hungarian: id (ImageDescription)
  309.   {LONG  idSize;                       // structure size
  310.    DWORD CodecType;                    // 'rpza', 'jpeg', 'rle ', 'raw ', 'smc'
  311.    DWORD resvd1;                       //
  312.    WORD  resvd2;                       // always 0
  313.    WORD  dataRefIndex;                 // always 1
  314.    WORD  version;                      //
  315.    WORD  revLevel;                     //
  316.    DWORD vendor;                       // 'appl' or other vendor
  317.    DWORD temporalQuality;              //
  318.    DWORD spatialQuality;               //
  319.    WORD  width;                        // Source image width in pixels
  320.    WORD  height;                       // Source image height in pixels
  321.    LFIXED hRes;                        // Horizontal resolution (eg: 72.0)
  322.    LFIXED vRes;                        // Vertical resolution (eg: 72.0)
  323.    DWORD dataSize;                     // Memory required for image data
  324.    WORD  frameCount;                   // always 0
  325.    char  name[32];                     // Compression algorithm (eg: Animation)
  326.    WORD  depth;                        // Pixel depth of source image
  327.    WORD  clutID;                       // Macintosh ROM Color table ID
  328.   } ImageDescription;
  329.  
  330. typedef ComponentResult (_far _cdecl *ComponentRoutine) (VOID);
  331. typedef DWORD (FAR CDECL *ENTRYFUNC) (VOID);
  332. typedef VOID (FAR PASCAL *FIXUPFUNC) (ENTRYFUNC);
  333. typedef LONG Component;
  334. typedef LONG ComponentInstance;
  335.  
  336. typedef struct tagComponentDescription { // Hungarian: cd
  337.   OSType  ostypeComponentType;         // component identifier
  338.   OSType  ostypeComponentSubType;      // sub-type
  339.   OSType  ostypeComponentManufacturer; // vendor ID
  340.   DWORD   dwComponentFlags;            // control flags
  341.   DWORD   dwComponentFlagsMask;        // mask for control flags
  342.   ComponentRoutine   crEntryPoint;     // pointer to entry point
  343.   HRSRC   hrsrcName;                   // handle to name string
  344.   HRSRC   hrsrcInfo;                   // handle to info string
  345.   HRSRC   hrsrcIcon;                   // handle to icon
  346. } ComponentDescription, FAR *LPCD;
  347.  
  348.  
  349.  
  350.  
  351. // Macros
  352. // ------
  353. #define MAKELFIXED(integ, fract) ((LONG)(((WORD)(fract)) | (((DWORD)((WORD)(integ))) << 16)))
  354.  
  355. #define MAKESFIXED(integ, fract) ((int)(((BYTE)(fract)) | (((WORD)((BYTE)(integ))) << 8)))
  356.  
  357. #define QTFOURCC(ch0, ch1, ch2, ch3)                                \
  358.                  ((DWORD)(BYTE)(ch0) | ( (DWORD)(BYTE)(ch1) << 8 ) |  \
  359.                  ((DWORD)(BYTE)(ch2) << 16 ) | ( (DWORD)(BYTE)(ch3) << 24 ))
  360.  
  361.  
  362. // ToolBox Callbacks and Handles
  363. // -----------------------------
  364. typedef LPVOID Movie;
  365. typedef OSErr (CALLBACK *MovieRgnCoverProc) (Movie, HDC, LONG);
  366.  
  367.  
  368. // Movie Controller Callbacks and Handles
  369. // --------------------------------------
  370. typedef ComponentInstance MovieController;
  371. typedef BOOL (CALLBACK *MCActionFilter) (MovieController, UINT, LPVOID, LONG);
  372.  
  373.  
  374. // Support C++ Function Invocations
  375. // --------------------------------
  376. #ifdef __cplusplus
  377.   extern "C" {
  378. #endif
  379.  
  380.  
  381. // Functions
  382. // ---------
  383. #define         QTAPI _far _cdecl
  384.  
  385. OSErr           QTAPI QTInitialize (LPLONG);
  386. VOID            QTAPI QTTerminate (VOID);
  387. VOID            QTAPI  AddTime ( TimeRecord FAR *, const TimeRecord FAR *);
  388. VOID            QTAPI  ClearMoviesStickyError ( VOID);
  389. OSErr           QTAPI  CloseMovieFile ( MovieFile);
  390. OSErr           QTAPI  ClosePictureFile ( PicFile);
  391. VOID            QTAPI  ConvertTimeScale ( TimeRecord FAR *, TimeScale);
  392. LONG            QTAPI  CountUserDataType ( UserData, OSType);
  393. OSErr           QTAPI  DeleteMovieFile ( LPCSTR);
  394. VOID            QTAPI  DisposeMovie ( Movie);
  395. VOID            QTAPI  DisposeMovieController ( MovieController);
  396. VOID            QTAPI  DisposePicture ( PicHandle);
  397. OSErr           QTAPI  DrawPicture ( HDC, PicHandle, const LPRECT, ProgressProcRecordPtr);
  398. OSErr           QTAPI  DrawPictureFile ( HDC, PicFile, const LPRECT, ProgressProcRecordPtr);
  399. OSErr           QTAPI  EnterMovies ( VOID);
  400. VOID            QTAPI  ExitMovies ( VOID);
  401. BOOL            QTAPI  GetMovieActive ( Movie);
  402. VOID            QTAPI  GetMovieActiveSegment ( Movie, TimeValue FAR *, TimeValue FAR *);
  403. VOID            QTAPI  GetMovieBox ( Movie, LPRECT);
  404. LONG            QTAPI  GetMovieCreationTime ( Movie);
  405. LONG            QTAPI  GetMovieDataSize ( Movie, TimeValue, TimeValue);
  406. TimeValue       QTAPI  GetMovieDuration ( Movie);
  407. LONG            QTAPI  GetMovieModificationTime ( Movie);
  408. PicHandle       QTAPI  GetMoviePict ( Movie, TimeValue);
  409. PicHandle       QTAPI  GetMoviePosterPict ( Movie);
  410. TimeValue       QTAPI  GetMoviePosterTime ( Movie);
  411. LFIXED          QTAPI  GetMoviePreferredRate ( Movie);
  412. SFIXED          QTAPI  GetMoviePreferredVolume ( Movie);
  413. OSErr           QTAPI  GetMoviesError ( VOID);
  414. OSErr           QTAPI  GetMoviesStickyError ( VOID);
  415. ComponentResult QTAPI  GetMovieStatus ( Movie, LPVOID);
  416. TimeValue       QTAPI  GetMovieTime ( Movie, TimeRecord FAR *);
  417. TimeScale       QTAPI  GetMovieTimeScale ( Movie);
  418. UserData        QTAPI  GetMovieUserData ( Movie);
  419. OSType          QTAPI  GetNextUserDataType ( UserData, OSType);
  420. OSErr           QTAPI  GetPictureFileHeader ( PicFile, LPRECT, OpenCPicParams FAR *);
  421. OSErr           QTAPI  GetPictureFileInfo ( PicFile, ImageDescription FAR *);
  422. PicHandle       QTAPI  GetPictureFromFile ( PicFile);
  423. OSErr           QTAPI  GetPictureInfo ( PicHandle, ImageDescription FAR *);
  424. HPALETTE        QTAPI  GetPicturePalette ( PicHandle);
  425. OSErr           QTAPI  GetSoundInfo ( Movie, SoundDescription FAR *);
  426. OSErr           QTAPI  GetUserData ( UserData, LPHANDLE, OSType, LONG, LPLONG);
  427. OSErr           QTAPI  GetUserDataText ( UserData, LPHANDLE, OSType, LONG, UINT, LPLONG);
  428. OSErr           QTAPI  GetVideoInfo ( Movie, ImageDescription FAR *);
  429. VOID            QTAPI  KillPicture ( PicHandle);
  430. MovieController QTAPI  NewMovieController ( Movie, const LPRECT, LONG, HWND);
  431. OSErr           QTAPI  NewMovieFromDataFork ( Movie FAR *, HFILE, LONG, UINT);
  432. OSErr           QTAPI  NewMovieFromFile ( Movie FAR *, MovieFile, LPINT, LPSTR, UINT, BOOL FAR *);
  433. VOID            QTAPI  NormalizeRect ( LPRECT);
  434. OSErr           QTAPI  OpenMovieFile ( LPCSTR, MovieFile FAR *, UINT);
  435. OSErr           QTAPI  OpenPictureFile ( LPCSTR, PicFile FAR *, UINT);
  436. DIBHandle       QTAPI  PictureToDIB ( PicHandle);
  437. OSErr           QTAPI  PrerollMovie ( Movie, TimeValue, LFIXED);
  438. BOOL            QTAPI  PtInMovie ( Movie, POINT);
  439. VOID            QTAPI  SetMovieActive ( Movie, BOOL);
  440. VOID            QTAPI  SetMovieBox ( Movie, const LPRECT);
  441. VOID            QTAPI  SetMovieCoverProcs ( Movie, MovieRgnCoverProc, MovieRgnCoverProc, LONG);
  442. VOID            QTAPI  SetMoviePlayHints ( Movie, LONG, LONG);
  443. VOID            QTAPI  SubtractTime ( TimeRecord FAR *, const TimeRecord FAR *);
  444. OSErr           QTAPI  UpdateMovie ( Movie);
  445. ComponentResult QTAPI  MCActivate ( MovieController, HWND, BOOL);
  446. ComponentResult QTAPI  MCDoAction ( MovieController, UINT, LPVOID);
  447. ComponentResult QTAPI  MCDraw ( MovieController, HWND);
  448. ComponentResult QTAPI  MCDrawBadge ( MovieController, HRGN, HRGN FAR *);
  449. ComponentResult QTAPI  MCGetControllerBoundsRect ( MovieController, LPRECT);
  450. ComponentResult QTAPI  MCGetControllerInfo ( MovieController, LPLONG);
  451. TimeValue       QTAPI  MCGetCurrentTime ( MovieController, TimeScale FAR *);
  452. Movie           QTAPI  MCGetMovie ( MovieController);
  453. ComponentResult QTAPI  MCGetVisible ( MovieController);
  454. ComponentResult QTAPI  MCIdle ( MovieController);
  455. ComponentResult QTAPI  MCIsControllerAttached ( MovieController);
  456. ComponentResult QTAPI  MCIsPlayerMessage ( MovieController, HWND, UINT, WPARAM, LPARAM);
  457. ComponentResult QTAPI  MCKey ( MovieController, WPARAM, LPARAM);
  458. OSErr           QTAPI  MCNewMovieController ( MovieController, ComponentInstance, Movie, const LPRECT, LONG, HWND);
  459. ComponentResult QTAPI  MCNewAttachedController ( MovieController, Movie, HWND, POINT);
  460. ComponentResult QTAPI  MCPositionController ( MovieController, LPRECT, LPRECT, LONG);
  461. ComponentResult QTAPI  MCRemoveMovie ( MovieController);
  462. ComponentResult QTAPI  MCSetActionFilter ( MovieController, MCActionFilter, LONG);
  463. ComponentResult QTAPI  MCSetControllerAttached ( MovieController, BOOL);
  464. ComponentResult QTAPI  MCSetControllerBoundsRect ( MovieController, const LPRECT);
  465. ComponentResult QTAPI  MCSetMovie ( MovieController, Movie, HWND, POINT);
  466. ComponentResult QTAPI  MCSetVisible ( MovieController, BOOL);
  467. Component       QTAPI  CaptureComponent ( Component cCaptured, Component cCapturing);
  468. OSErr           QTAPI  CloseComponent ( ComponentInstance ci);
  469. OSErr           QTAPI  CloseComponentResFile ( short sFileNum);
  470. LONG            QTAPI  ComponentFunctionImplemented ( ComponentInstance ci, short sFunctionNumber);
  471. LONG            QTAPI  CountComponentInstances ( Component c);
  472. LONG            QTAPI  CountComponents ( ComponentDescription FAR *lpcdLooking);
  473. Component       QTAPI  FindNextComponent ( Component c, ComponentDescription FAR *lpcdLooking);
  474. HINSTANCE       QTAPI  GetComponentResFileInstance ( short sFileNum);
  475. OSErr           QTAPI  GetComponentInfo ( Component c, ComponentDescription FAR *lpcd);
  476. OSErr           QTAPI  GetComponentInstanceError ( ComponentInstance ci);
  477. LPVOID          QTAPI  GetComponentInstanceStorage ( ComponentInstance ci);
  478. LONG            QTAPI  GetComponentListModSeed ( void);
  479. LONG            QTAPI  GetComponentRefcon ( Component c);
  480. LONG            QTAPI  GetComponentVersion ( ComponentInstance ci);
  481. ComponentInstance QTAPI  OpenComponent ( Component c);
  482. short           QTAPI  OpenComponentResFile ( Component c);
  483. ComponentInstance QTAPI  OpenDefaultComponent ( OSType ostypeComponentType, OSType ostypeComponentSubType);
  484. Component       QTAPI  RegisterComponent ( LPCD lpcd, WORD wGlobal, FIXUPFUNC lpfnTBFixup, FIXUPFUNC lpfnCMFixup);
  485. OSErr           QTAPI  RegisterComponentResourceFile ( LPCSTR lpszDLL, WORD wGlobal);
  486. VOID            QTAPI  SetComponentInstanceError ( ComponentInstance ci, OSErr oserr);
  487. VOID            QTAPI  SetComponentInstanceStorage ( ComponentInstance ci, LPVOID lpvStorage);
  488. VOID            QTAPI  SetComponentRefcon ( Component c, LONG lRefcon);
  489. OSErr           QTAPI  SetDefaultComponent ( Component c, short sFlags);
  490. OSErr           QTAPI  UncaptureComponent ( Component c);
  491. OSErr           QTAPI  UnregisterComponent ( Component c);
  492. OSErr           QTAPI  UnregisterComponentResourceFile ( LPCSTR lpszDLL);
  493.  
  494. // End of Functions
  495. // ----------------
  496. #ifdef __cplusplus
  497.   }
  498. #endif
  499.  
  500.  
  501. // End of QTW.H
  502. // ------------
  503. #endif // __QTW_H__
  504.